//
//  EditSeatsSectionHeader.m
//  BaseProject
//
//  Created by 王洋 on 2020/11/13.
//  Copyright © 2020 王洋. All rights reserved.
//

#import "EditSeatsSectionHeader.h"

@implementation EditSeatsSectionHeader


- (IBAction)addAction:(id)sender {
    
    NSInteger count = self.seatCountTF.text.integerValue;
    count++;
    self.seatCountTF.text = [NSString stringWithFormat:@"%ld",count];
}


- (IBAction)cutAction:(id)sender {
    NSInteger count = self.seatCountTF.text.integerValue;
    count--;
    
    if (count >0) {
        self.seatCountTF.text = [NSString stringWithFormat:@"%ld",count];
    }
}


@end
